<html lang="en" >
<head>
    <meta charset="utf-8">
    <meta name="X-UA-Compatible" content="IE=edge">
    <title> 愤怒的泡面</title>
    <meta name="description" content="A Blog Powered By Hexo">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="icon" href="/favicon.ico">
    <link rel="stylesheet" href="/css/prontera.css">
    <#include "/common/public.html"/>
</head>
<body>
<div id="app">
    <#include "/common/header.html"/>
    <main class="container">
        <div class="archive" v-for="(blog,index) in blogs" :key="blog.id">
            <h2 class="archive-year">{{blog.year}}</h2>
            <div class="post-item" v-for="(article,cindex) in blog.blogList" :key="article.id">
                <div class="post-info">{{article.createTime}}</div>
                <a v-bind:href="'/detail/'+article.id" :title="article.title" target="_blank"
                   class="post-title-link">{{article.title || "&nbsp;"}}</a>
            </div>
            <div class="post-item" v-if="blog.pageMap.pages > 1" style="margin: 10px 0 0;">
                <button @click="loadMore(index)" v-if="blog.pageMap.pageNo < blog.pageMap.pages">加载更多 {{blog.pageMap.total}} / {{blog.pageMap.pageNo}} / {{blog.pageMap.pages}}</button>
                <div v-else>没有更多了!!!</div>
            </div>
            <div class="post-item" style="margin: 10px 0 0;" v-else>没有更多了!!!</div>
        </div>
    </main>
    <footer class="footer-container">
        <div class="paginator"></div>
        <div class="copyright">
            <p>© 2017 - 2021
                <a href="https://powman.org">AngryPowman</a>, powered by
                <a href="https://hexo.io/" target="_blank">Hexo</a> and
                <a href="https://github.com/AngryPowman/hexo-theme-prontera" target="_blank">hexo-theme-prontera</a>.
            </p>
        </div>
    </footer>
</div>

<script src="/js/vue.global.js"></script>
<script src="/js/axios.min.js"></script>
<script src="/js/archives/index.js"></script>
</body>
</html>